package com.credithc.signature.common.mapper;

import com.credithc.baseserv.core.mapper.BsBaseMapper;
import com.credithc.signature.common.po.TemplateHistory;
import com.credithc.signature.common.ro.manager.TemplateRo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface TemplateHistoryMapper extends BsBaseMapper<TemplateHistory> {

    /**
     * 查询所有
     *
     * @param templateRo
     * @return
     */
    List<TemplateHistory> listByParamsAndPage(@Param("condition") TemplateRo templateRo);

    /**
     * 查询总数
     *
     * @param templateRo
     * @return
     */
    int countByParamsAndPage(@Param("condition") TemplateRo templateRo);
}
